<?php
   	include ('../inc/config.php');

	if (!isset($_SESSION["admin"])) { die('Hacking attempt!!'); }

	$id = request('id',0);

	$sql = "select * from usuarios where id='$id'";
	$rs  = $db->SelectLimit($sql,1);
	$data = $rs->FetchRow();
	
?>

		<div class="control-group">
			<label class="control-label" for="inputEmail">Email (*):</label>
			<div class="controls">
				<input type="hidden" name='data[id]' id="id" value='<?php echo $id;?>'>
				<input type="email" class='input-xlarge' name='data[email]' id="inputEmail" required value='<?php echo $data['email'];?>'>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="inputNombre">Nombre (*):</label>
			<div class="controls">
			  <input type="text"  class='input-xlarge' name='data[nombre]' id="nombre" required value='<?php echo $data['nombre'];?>'>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="inputApellido">Apellido (*):</label>
			<div class="controls">
			  <input type="text"  class='input-xlarge' name='data[apellido]' id="apellido" required value='<?php echo $data['apellido'];?>'>
			</div>
		</div>


		<div class="control-group">
			<label class="control-label" for="inputTelefono">Teléfono:</label>
			<div class="controls">
			  <input type="text"  class='input' name='data[telefono]' id="telefono" maxlength='60' value='<?php echo $data['telefono'];?>'>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="inputTelefono">Localidad:</label>
			<div class="controls">
			  <input type="text"  class='input' name='data[localidad]' id="localidad" maxlength='60' value='<?php echo $data['localidad'];?>'>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="inputTelefono">Provincia:</label>
			<div class="controls">
			  <input type="text"  class='input' name='data[provincia]' id="provincia" maxlength='60' value='<?php echo $data['provincia'];?>'>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="inputTelefono">País:</label>
			<div class="controls">
			  <input type="text"  class='input' name='data[pais]' id="pais" maxlength='60' value='<?php echo $data['pais'];?>'>
			</div>
		</div>
